package com.globalresources.dao.inface;

import java.util.List;

import com.globalresources.po.User;
import com.trg.dao.dao.standard.GenericDAO;

/**
 * @author aaron.lu(luzhiyuan) E-mail:atyuan.lu@gmail.com
 * @since 创建时间：Jul 5, 2009 2:00:36 PM
 */
public interface IUserDao extends GenericDAO<User, Integer> {
	
	/**
	 * load user list
	*@author aaron.lu(luzhiyuan)
	*@param username
	*@return
	 */
	public List<User> getUsers(String username);
	
	/**
	 * count users
	*@author aaron.lu(luzhiyuan)
	*@param username
	*@return
	 */
	public int countUsers(String username);
	
	/**
	 * get User by username
	*@author aaron.lu(luzhiyuan)
	*@param username
	*@return
	 */
	public List<User> getUser(String username);
	
	/**
	 * save User 
	*@author songduanlei@gmail.com
	*@param object
	*@return
	 */
	
	public void saveUser(User user);
	
	
	/**
	 * get User By Id 
	*@author songduanlei@gmail.com
	*@param object
	*@return
	 */
	
	public User getUserById(String id);
	
	/**
	 * save Or Update User 
	*@author songduanlei@gmail.com
	*@param object
	*@return
	 */	
	public void saveOrUpdateUser(User user);
	
	/**
	 * <P>查询用户
	*@author aaron.lu(luzhiyuan)
	*@param usernames
	*@return
	 */
	public List<User> getUsers(String[] usernames);
}
